#include "complexui.h"
#include "ui_complexui.h"

ComplexUI::ComplexUI(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::ComplexUI)
{
    ui->setupUi(this);
}

ComplexUI::~ComplexUI()
{
    delete ui;
}

void ComplexUI::setData(const QString &type, const QString &level, const QString &humidity,
                           const QString &pm25, const QString &quality, const QString& tips)
{
    ui->type->setText(type);
    ui->level->setText(level);
    ui->humidity->setText(humidity);
    ui->pm25->setText(pm25);
    ui->quality->setText(quality);
    ui->tips->setText(tips);
}
